apiready = function() {
    seajs.use(['../../V', "../../api", "../../jquery", "../../app", "../../service"], function(V, $api, $, $app, service) {
        var vm = {
            el: '.container',
            data: {
                list: '',
                order_id: '',
                msgList: ''
            },
            methods: {
                init: function() {
                    this.getList();
                },
                getList: function() {
                    var unionid = $api.getStorage("shop_unionid"),
                        self = this;
                    this.order_id = api.pageParam.order_id;
                    $app.ajax(service.buyViewExpress, {
                        data: {
                            values: {
                                unionid: unionid,
                                order_id: self.order_id
                            }
                        }
                    }, function(res) {
                        console.log("orderFlow: " + JSON.stringify(res));
                        if (res.code == 0) {
                            self.list = res.data;
                            self.msgList = res.data.content.data;
                        }
                    });
                },
                shopFlowCopy: function(et) {
                    var _txt = et.currentTarget.dataset.txt || '';
                    var clipBoard = api.require('clipBoard');
                    clipBoard.set({
                        value: _txt
                    }, function(ret, err) {
                        if (ret.status) {
                            api.toast({
                                msg: '已复制到剪贴板',
                                duration: 2000,
                                location: 'middle'
                            });
                        } else {
                            api.toast({
                                msg: ret.mst,
                                duration: 2000,
                                location: 'middle'
                            });
                        }
                    });
                }
            },
            mounted: function() {

            },
            created: function() {
                this.init();
            }
        };
        //var shopVue = new Vue(vm);
        var even = function() {

        };
        var newVue = new Vue(vm);
        even();

    })
}
